<?php

use yii\db\Migration;

class m180126_055725_alter_check_times extends Migration
{
    public $tableName = 'check';
    
    public function safeUp()
    {
        $this->alterColumn($this->tableName, 'times', $this->smallInteger(1)->notNull()->defaultValue(0)->comment('审核状态'));
    }

    public function safeDown()
    {
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180126_055725_alter_check_times cannot be reverted.\n";

        return false;
    }
    */
}
